<div>
	<div id="param-tags-div-tagsinput"></div>
	<div id="param-tags-div-tags"></div>
	<div>
		<input id="params-tags-nm_tag" type="text" name="add-tag" />
			<label for="tag_add"><?php echo JText::_( 'Add Tag' ); ?></label>
	</div>

	<div id="param-tags-availables">
		<?php foreach( $tags as $tag ): ?>
		<span id="tag_<?php echo $tag[ 'id_tag' ]; ?>" class="jloja-tag-available" onclick="JlojaTags.addTag( this );">
		<?php echo $tag->Translation[JLoja_Lang::getPostLang() ][ 'nm_tag' ]; ?>
		</span> | 
		<?php endforeach; ?>
	</div>
</div>

<script>
	JlojaTags.name = '<?php echo "params[$control_name][]"; ?>';
JLojaEvent.onEnter( jQuery( '#params-tags-nm_tag' ), function(){
	JlojaTags.addTagFromInput( $( 'params-tags-nm_tag' ) );
} );
</script>